<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<base href="<%=basePath%>">
<html lang="zn-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="format-detection" content="telephone=no"/>
    <title>黄页</title>
    <link rel="stylesheet" href="css/base.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/base.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript" src="js/handle.js"></script>
    <script type="text/javascript" src="js/mall_lhx.js"></script>

</head>
<body class="ed" style="position:relative">
<div class="wrap">
    <div class="product_list"></div>
</div>
<div class="float_layer" onclick="goToGroupList()">
    <img src="img/icon_order.png">群录
</div>
<div class="mask_layer none"></div>
<div class="loading" style="display:none">
    <img src="img/loading.gif"></div>
<div class="toast toast_timeout" style="display:none">网络异常，请稍后重试！</div>
<div class="toast toast_error" style="display:none">信息输入有误</div>
<script type="text/javascript">
    $(function () {
        var r = {
            "code": "00",
            "msg": "成功",
            "data": [
                {
                    "title": "黄页",
                    "content": "公共组织",
                    "introduce": "可关注，可分享",
                    "url": "",
                    "picture": "img/6d91849a-2718-4854-8b2d-3100adf66b14.png",
                    "onClick": "gotoFollowPage()"
                },
                {
                    "title": "车辆服务",
                    "content": "增加行驶证",
                    "introduce": "可查看，可分享",
                    "url": "",
                    "picture": "",
                    "onClick": "gotoVehicleAddPage()"
                },
                {
                    "title": "车辆服务",
                    "content": "增加驾驶证",
                    "introduce": "可查看，可分享",
                    "url": "",
                    "picture": "",
                    "onClick": "gotoDriverAddPage()"
                },
                {
                    "title": "提醒服务",
                    "content": "增加生日提醒",
                    "introduce": "可查看，可分享",
                    "url": "",
                    "picture": "",
                    "onClick": "gotoBirthdayRemindAddPage()"
                }
            ]
        };
        if (r.code != "00") {
            $(".product_list").append(noMoreProductText);
            return;
        }
        for (var i = 0; i < r.data.length; i++) {
            var yellow = r.data[i];
            var p = "<div class='product_wrap' onclick=" + yellow.onClick + ">";
            if(yellow.picture == undefined || yellow.picture != ""){
                p += "<img src='" + yellow.picture + "'>";
            }
            p += "<p>";
            p += "【" + yellow.title + "】" + yellow.content;
            p += "<span>" + "" + "</span>";
            p += "</p>";
            p += "</div>";
            $(".product_list").append(p);
        }

    })
</script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="js/weixin.js"></script>
<script type="text/javascript">
    getSignature(['onMenuShareTimeline','onMenuShareAppMessage'],function () {
        shareMobileGroup("${fromUser}");
    })
</script>
</body>
</html>